//
//  FGYPhoneRegisterViewController.m
//  01 - shop
//
//  Created by ma c on 16/8/18.
//  Copyright (c) 2016年 beijing. All rights reserved.
//

#import "FGYPhoneRegisterViewController.h"
#import "FGYPhoneRegisterView.h"

@interface FGYPhoneRegisterViewController ()

@property (strong, nonatomic) FGYPhoneRegisterView * registerView;

@end

@implementation FGYPhoneRegisterViewController

- (FGYPhoneRegisterView *)registerView{
    if (!_registerView) {
        _registerView = [[FGYPhoneRegisterView alloc]init];
    }
    return _registerView;
}

- (void)setUserDict:(NSDictionary *)userDict{
    _userDict = userDict;
    self.registerView.userDict = userDict;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.registerView];
    self.edgesForExtendedLayout = UIRectEdgeNone;
    self.title = @"验证手机号";
    
    [self addLayOut];
}


- (void)addLayOut{
    __weak typeof(self)weakSelf = self;
    [_registerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.left.right.equalTo(weakSelf.view);
    }];
}

@end
